package com.duo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.duo.dto.DishDTO;
import com.duo.dto.DishDeleteDTO;
import com.duo.dto.DishPageQueryDTO;
import com.duo.dto.DishUpdateDTO;
import com.duo.entity.Dish;
import com.duo.result.PageResult;

import java.util.List;

/**
 * @Author: Xrx
 * @Description:
 * @CreateTime: 2023/7/6 18:41
 */
public interface DishService extends IService<Dish> {

    /**
     * 新增菜品
     * @param dishDTO
     */
    void saveWithFlavor(DishDTO dishDTO);


    /**
     * 菜品分页查询
     * @param dishPageQueryDTO
     * @return
     */
    PageResult pageQuery(DishPageQueryDTO dishPageQueryDTO);

    /**
     * 菜品删除
     */
    void delete(DishDeleteDTO dishDto);

    /**
     * 菜品批量删除
     */
    void deleteBatch(List<DishDeleteDTO> dishList);

    /**
     * 菜品更新
     * @param dishDTO
     */
    void update(DishUpdateDTO dishDTO);



}
